import http from '@/utils/request';

export const getHome=()=>http.get('/api/index/index')

export const getTopic=(page=1)=>http.get('/api/topic/list',{params:{page,size:10}})

export const getCatalog=()=>http.get('/api/catalog/index')

export const getCurrent=(params)=>http.get('/api/catalog/current',{params})

export const getCart=()=>http.get('/api/cart/index')